package com.dbsop.domain.transport.agg;

import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;

public class TransportMin extends MaxMinOperation {
    public TransportMin(String fieldName) {
        super(fieldName);
    }

    public TransportMin(String fieldName, String formatName) {
        super(fieldName, formatName);
    }


    @Override
    public AggregationBuilder doAggregationBuilder() {
        return AggregationBuilders.min(formatName).field(fieldName);
    }
}
